﻿<ad:DocumentContent x:Class="Notoric.Gui.Windows.LinearCompositionViewPanel"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        xmlns:ctrl="clr-namespace:Notoric.Gui.Controls"
        x:Name="parentControl"
        Title="{Binding Path=Owner.DisplayName}"
        Closed="parentControl_Closed">
    <ad:DocumentContent.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Templates/Section.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </ad:DocumentContent.Resources>
    <DockPanel LastChildFill="True">
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Background="White">
            <ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Top"
                              Height="{Binding Owner.Height, Mode=OneWay}" Width="{Binding Owner.Width, Mode=OneWay}"
                              Content="{Binding Content.Interior, Mode=OneWay}"/>
        </ScrollViewer>
    </DockPanel>
</ad:DocumentContent>
